import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'

//存放路由信息
const routes: Array<RouteRecordRaw> = [
  {
    //path: '/',
    name: "login",
    component: () => import('@/views/Login.vue')
  },
  {
    name: "index",
    component: () => import('@/views/Index.vue')
  },
  {
    name: "out",
    component: () => import('@/components/logout.vue')
  }
]

const router = createRouter({ history: createWebHashHistory(), routes })
export default router